for a in range(101):
    for b in range(101 - a):
        c = 100 - a - b
        if 3 * a + 2 * b + 0.5 * c == 100:
            print(f"公牛{a},母牛{b}头,小牛{c}头")

